
AM_CFLAGS = -I. -Wno-overlength-strings -Wall -pedantic @AM_CFLAGS@ 
AM_LDFLAGS = $(WIN_LD) @AM_LDFLAGS@ -pg -g2
AM_LDADD = $(WIN_LD) @AM_LDADD@ -pg -g2

bin_PROGRAMS = serverfw user

serverfwdir = $(includedir)
userdir = $(includedir)

serverfw_SOURCES = main.c servidor.c sniffer.c
user_SOURCES = user.c

serverfw_HEADERS = bibliotecas.h servidor.h sniffer.h
user_HEADERS = captura.h

serverfw_CFLAGS = $(CFLAGS) $(PCAP_CFLAGS) $(SL_INCLUDE)
user_CFLAGS = $(CFLAGS) $(SL_INCLUDE)

serverfw_LDFLAGS = $(WIN_LD) $(LIBS) $(LDFLAGS) $(PCAP_LIBS)
user_LDFLAGS = $(WIN_LD) $(LIBS) $(LDFLAGS)

serverfw_LDADD = $(LIBS) $(LDFLAGS) $(PCAP_LIBS) $(SL_LDADD) $(WIN_libs) 
user_LDADD = $(LIBS) $(LDFLAGS) $(SL_LDADD) $(WIN_libs) 
